﻿using System.Collections.Hashtable;
//using System;
//using System.Collections.Generic;
//using System.Linq;
//using System.Text;

namespace dal
{
    public class db
    {
        /*
         * Atributos
         */
        private string dsn;
        private bool state;

        
        
        /*
         * Contructor(es)
         */
        public db()
        {
        }

        public db(string dsn)
        {
            this.dsn = dsn;
        }

        /*
         * Procedimientos y/o Funciones
         */
        public void setDSN(string dns) 
        {
            this.dsn = dns;
        }

        public string getDSN()
        {
            return dsn;
        }

        public Hashtable parseDNS()
        {
            return null;
        }

        public string getType()
        {
            return dsn;
        }

        public bool getState()
        {
            return state;
        }

        public bool connect()
        {
            return true;
        }

        public bool disconnect() 
        {
            return true;
        }

        /*
         * Destructor(es)
         */
        public ~db()
        { 
        }
    }
}
